// DisplayImageActivity.kt
package com.example.nutritionmanager.ocr

import android.net.Uri
import android.os.Bundle
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
import com.example.nutritionmanager.R
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class DisplayImageActivity : AppCompatActivity() {

    private val imageView: ImageView by lazy { findViewById(R.id.imageView) }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_display_image)

        val imageUriString = intent.getStringExtra("imageUri")
        val imageUri = Uri.parse(imageUriString)

        // Display the captured image in the ImageView
        imageView.setImageURI(imageUri)
    }
}
